﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="执行Sql.aspx.cs" Inherits="DevFrameWork.Web.DevTest.DevDemo02.执行Sql" %>
<%@ Import Namespace="DevCore.Service.System"%>
<%@ Import Namespace="DevCore.Entity.System"%>
<%@ Import Namespace="DevCore.UI.Web.Grid"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
    <%=DevCore.Web.UIPage.WebPageHelper.GetCss(ResolveUrl("~/Script/EasyUI/themes/default/easyui.css"))%>
    <%=DevCore.Web.UIPage.WebPageHelper.GetScript(ResolveUrl("~/Script/js/jquery-1.4.2.min.js"))%>
    <%=DevCore.Web.UIPage.WebPageHelper.GetScript(ResolveUrl("~/Script/EasyUI/jquery.easyui.min.js"))%>
    <%=DevCore.Web.UIPage.WebPageHelper.GetScript(ResolveUrl("~/Script/js/jquery.form.js"))%>
    
    <script type="text/javascript">
        $(document).ready(function() {
         <%
            String funcCode = "f001";
            FunctionInfo functionInfo = FunctionService.GetEntity(funcCode);
            //Response.Write(functionInfo.FuncCode);
            int i = 0;
            DevCore.UI.Web.Grid.EasyGridHelper easyGridHelper = new EasyGridHelper("myGrid","100%","400");
            easyGridHelper.Title = functionInfo.FuncTitle;
            easyGridHelper.HasPage = true;
            easyGridHelper.LoadMsg = "正在加载...请稍候.";
            easyGridHelper.DataUrl =ResolveUrl("~/"+functionInfo.GetDataUrl) + "?FuncCode=" + functionInfo.FuncCode;
            ListGridColumnInfo = FunctionService.GetColumns(funcCode);
            easyGridHelper.GridColumnInfos = ListGridColumnInfo;
         %>
         <%=easyGridHelper.SetGrid() %>
    
    })
    </script>
</head>
<body>
    <form id="form1">
    <div>
    a
    <table id="myGrid"></table>
    
    </div>
    </form>
</body>
</html>
